import $http from '../../../servers/http';
import { Result } from 'seats/schema/Result';
import {
  CallintentionRequest,
  CallintentionResponse,
  ExportRequest,
} from 'admin/schema/CallIntentionReport';

/**查询【通话意图报表】列表 */
export const getCallIntentionReportList = (
  data: CallintentionRequest
): Promise<Result<CallintentionResponse>> => {
  return $http.get({
    url: `/icms/taskmanage/report/callintention`,
    data,
  });
};

/**创建【通话意图报表】下载任务-导出 */
export const createCallIntentionReportDownloadTask = (
  data: ExportRequest
): Promise<Result<null>> => {
  return $http.post({
    url: '/icms/taskmanage/report/callintention/export',
    data,
  });
};

/**创建【通话意图报表】下载任务-导出 */
export const createCheckAvaluateReportDownloadTask = (
  data: ExportRequest
): Promise<Result<null>> => {
  return $http.post({
    url: '/icms/taskmanage/report/callintention/export',
    data,
  });
};
